-- GENERATED SPELL FOR [Iron Dwarf Magus] --


function spell0_29979(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(12058,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29979', 3000, 1)
end

function Sorts_29979(pUnit, Event)
local choix_sorts_29979 = math.random(0, 0)
if choix_sorts_29979 == 0 then
pUnit:RegisterEvent('spell0_29979', 1, 1)
end
end

function mob29979_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29979', math.random(1500, 3000), 1)
end

function mob29979_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29979_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29979_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29979, 1, 'mob29979_Action')
RegisterUnitEvent(29979, 2, 'mob29979_Leave')
RegisterUnitEvent(29979, 3, 'mob29979_Kill')
RegisterUnitEvent(29979, 4, 'mob29979_Die')
